#if !defined(APP_BLUETOOTH_H)
#define APP_BLUETOOTH_H
#include "app_device.h"
//蓝牙波特率枚举
typedef enum
{
    BT_BR_9600 = '4',
    BT_BT_115200 = '8',

}BTBraudRate;

//蓝牙是否可用
int app_bluetooth_status(Device *device); //获取蓝牙状态

//蓝牙重命名
int app_bluetooth_rename(Device *device,char *name);
//蓝牙设置波特率
int app_bluetooth_setBraudRate(Device *device,BTBraudRate baud_rate);
//蓝牙重置
int app_bluetooth_reset(Device *device);
//蓝牙设置网络ID
int app_bluetooth_setNetID(Device *device,char *net_id);

//设置蓝牙MAC地址
int app_bluetooth_setMaddr(Device *device,char *maddr);

//处理读取的蓝牙数据的函数
int app_bluetooth_postRead(Device *device,char *data,int len);

//处理将要写入蓝牙数据的函数
int app_bluetooth_preWrite(Device *device,char *data,int len);


#endif // APP_BLUETOOTH_H
